package com.example.lt.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author 涛Tao
 * @Date: 2024/05/29/9:00
 * version 1.0 注释：评论类
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "comment") // 对应数据库中的comment表
public class Comment {
    @TableId(type = IdType.AUTO) // id自增
    private Integer id;

    private Integer userId;

    private Integer songId;

    private Integer songListId;

    private String content;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private Byte type;

    private Integer up;

}
